package org.forwhat.service;

import org.forwhat.bean.WhatPost;
import org.forwhat.framework.annotation.AOP;
import org.forwhat.framework.annotation.advisor.Around;

import java.util.List;

public interface WhatPostService {
    @AOP("CheckStateAdvice")
    List<WhatPost> select(int start,int count,String search);

    @AOP("CheckStateAdvice")
    List<WhatPost> selectHot(int length);

    @AOP("CheckStateAdvice")
    WhatPost getPostByPostId(String postId);

    @AOP("DBAdvice")
    int sendPost(WhatPost whatPost);

}
